package com.publicize.controller;

import com.publicize.commom.commonutils.Result;
import com.publicize.entity.Option;
import com.publicize.service.ExaminationDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;

@RestController
@RequestMapping("/backstage_competition/examinationDetail")
@CrossOrigin
public class ExaminationDetailController {

    @Autowired
    private ExaminationDetailService examinationDetailService;
    @PostMapping("getExaminationDetail/{number}")
    public Result getExaminationDetail(@PathVariable String number){
        List<Option> optionList = examinationDetailService.getOptionList(number);
        return Result.ok().data("optionList",optionList);
    }
}
